/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */
// 数据展示
export const exampleColumns = [
    {type: 'index', label: '序号', width: 50, align: 'center'},
    {prop: 'name', label: '姓名', align: 'center'},
    {
        prop: 'staffNumber', label: '工号', sortable: 'custom', align: 'center',
        formatter: function (row: any, column: any, cellValue: any) {
            if (cellValue) return cellValue
            else return '-'
        }
    },
    {prop: 'phone', label: '联系方式', align: 'center',
        formatter: function (row: any, column: any, cellValue: any) {
            if (cellValue) return cellValue
            else return '-'
        }},
    // {prop: 'name4', label: '所属航站楼', align: 'center',
    //     formatter: function (row: any, column: any, cellValue: any) {
    //         if (cellValue) return cellValue
    //         else return '-'
    //     }},
    {prop: 'positionName', label: '岗位', align: 'center',
        formatter: function (row: any, column: any, cellValue: any) {
            if (cellValue) return cellValue
            else return '-'
        }},
    {
        prop: 'position', label: '职务', align: 'center',
        formatter: function (row: any, column: any, cellValue: any) {
            if (cellValue === 0) return "员工"
            if (cellValue === 1) return "班组长"
            if (cellValue === 2) return "科室领导"
            if (cellValue === 3) return "管理员"
        }
    },
    {prop: 'createTime', label: '同步时间', align: 'center'},

    {
        prop: 'imgs', label: '特种作业资质附件', align: 'center' },
    {prop: 'action', label: '操作', align: 'center'}
];
